<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<div class="pageContent" >
<center>
	<form onsubmit="return validateCallback(this, navTabAjaxDone);" rel="module_list" target="navTab"
	 class="pageForm required-validate" action="admin/module!add" method="post" novalidate="novalidate">
		<input type="hidden" value="${method }" name="method" >
		<input type="hidden" value="${id }" name="id">
		<s:set var="mid" value="id"></s:set>
		<div  class="pageFormContent" layoutH="56" style="width:550px; overflow: auto;">
			<p>
				<label>模块名称：</label>
				<input type="text" alt="请输入模块名称" value="${module.name }" 
				size="30" class="required textInput" name="name" id="name_4220">
			<label for="name_4220" class="alt" style="width: 188px; 
			top: 5px; left: 130px; opacity: 1; display: none;">请输入模块名称</label>
			
			</p>
			<p>
				<label>父模块：</label>
				
				<select name="parentId">
					<option  selected="" value="0">无
					<s:iterator value="datas" var="data">
						<s:if test="#data.id != #mid">
							<option  value="${data.id }">${data.name }</option>
							<s:iterator value="#data.children" var="cm">
								<s:if test="#data.id != #mid">
								<option value="${cm.id }">——${cm.name }</option>
								</s:if>
							</s:iterator>
						</s:if>
					</s:iterator>
				</select>			
			</p>
			<p>
				<label>模块编号:</label>
				<input id="msn" alt="请输入模块编号" type="text" 
				value="${module.sn }" size="30" name="sn" class="required textInput">
				<label for="msn" class="alt" style="width: 188px; 
			top: 5px; left: 130px; opacity: 1; display: none;">请输入模块编号</label>
			
			</p>
			
			
			
			<p>
				<label>模块类型：</label>
				<select  name="type" >
					<option value="分类">分类
					<option value="链接" ${module.type=='链接' ? 'selected':''}>链接
				</select>
				
			</p>	
			<p>
				<label>模块地址：</label>
				<input type="text"  value="${module.url }" 
				size="30" class="textInput" name="url" >
				
			</p>		
	
			<p>
				<label>地址目标：</label>
				<select name="target">
					<option  selected="" value="">请选择</option>
					<option value="navTab">navTab</option>
					<option  value="dialog">对话框</option>
					<option  value="_self">当前窗口</option>
					<option  value="_blank">新窗口</option>
				</select>
			</p>
			<p>
				<label>目标参数：</label>
				<input  type="text" value="${module.params}" 
				size="30" class="textInput" name="params" >
			</p>
			<p>
				<label>排序号：</label>
				<input type="text"  value="${module.level }" 
				size="30" class="digits textInput" name="level" >
			
			</p>
					
		</div>
		<%@ include file="formBar.jsp" %>
	</form>
	</center>
</div>
